/<template>
    <div>
        <van-tabbar route v-model="active" >
            <van-tabbar-item icon="home-o" :to="item.path" v-for="(item,index) in mainRouter " :key="index">
                {{
                    item.title
                }}
            </van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
    name: 'Tabbar',
    data:()=>{
        return {
            active:0
        }
    },
    props:{
        mainRouter:Array,
        default:()=>{
            return []
        }
    }
}
</script>

<style>

</style>